<!DOCTYPE html>
<html lang="cn">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        canvas {
            outline: 1px solid #000;
        }
    </style>
    <script src="utils.js"></script>
    <script src="ball.js"></script>
    <script src="paddle.js"></script>
    <script src="block.js"></script>
    <script src="game.js"></script>
    <script src="scene.js"></script>
    <script src="scene_main.js"></script>
    <script src="scene_end.js"></script>
    <script src="main.js"></script>
</head>

<body>
    <canvas id="canvas" width="600" height="600"></canvas>
    <div>
        <input type="range" id="range" value="100" min="1">
        <span name="" id="tip"></span>
        <div>按 F 发射小球, 按 P 暂停</div>
    </div>
    <script>

        var fps = 60

        var range = document.getElementById('range')
        var tip = document.getElementById('tip')

        range.oninput = function () {
            fps = range.value * 0.6
            tip.innerHTML = 'fps:' + fps.toFixed(2)
        }

        tip.innerHTML = 'fps:' + fps.toFixed(2)

        _main();
    </script>
</body>

</html>